import React from 'react';
import BasePosts from "./BasePosts";
import {useQuery} from "../Helpers";

export default function TagPostsPage(props) {
    const query = useQuery()
    const queryPage = query.get('page')
    const tagName = props.match.params.tagName
    const url = `/api/v1/tags/${tagName}/`
    return <BasePosts name={tagName} url={url} queryPage={queryPage}/>
};
